using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using ESoft.Core.DAO;
using ESoft.Core.Data.Entity;

namespace Edu.Web.Data.Entity
{
    /// <summary>
    /// ClazzTeacher
    /// </summary>    
	[Table("clazz_teacher")]
    public partial class ClazzTeacherEntity : BaseModel<long>
    {		    
        /// <summary>
        /// 
        /// </summary>
		[Column("clazz_id")]
        public long ClazzId { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("teacher_user_id")]
        public long TeacherUserId { get; set; }
    
        /// <summary>
        /// 1班主任2普通老师
        /// </summary>
		[Column("teacher_type")]
        public long TeacherType { get; set; }
    }

	public class ClazzTeacherEntityRegstHelper : IEntityMapper
    {
        public void RegistTo(ConfigurationRegistrar configurations)
        {
            configurations.Add<ClazzTeacherEntity>(new EntityTypeConfiguration<ClazzTeacherEntity>());
        }
    }
}

